/**
 * the value about the project's setting
 */
var DEBUG_NODE_SHOW = true;   

/**
 * constant
 */ 
var DESIGN_SIZE = {
	width: 1080,
	height:1920
}
var WIN_SIZE = cc.winSize;
var REAL_WIN_SIZE = cc.view.getFrameSize();
//the constant in the collision's listener
var BALL_COLLISION_TYPE = 1;
var TOP_THREE_WALL_COLLISION_TYPE = 2;
var BOTTOM_WALL_COLLISION_TYPE = 3;
var BAR_COLLISION_TYPE = 4;

var COIN_SPRITE_NAME = "COIN";
var SLOWER_SPRITE_NAME = "SLOWER";
var LONGER_BAR_SPRITE_NAME = "LONGER_BAR";
var CRAZY_SPRITE_NAME = "CRAZY";

var PROP_BEST_SCORE_TAG = "PROP_BEST";
var CLASSIC_BEST_SCORE_TAG = "CLASSIC_BEST";

var CLASSIC_MODE = 0;
var PROP_MODE = 1;

var BALL_RADIUS = 55;
var BAR_HEIGHT = 82;

var ENHENCE_COIN_1 = 10000;
var ENHENCE_COIN_2 = 20000;
var ENHENCE_COIN_AD = 50000;

var tipArray =new Array ("不要快速移动滑块，别怪我没提醒你", "那么我们的问题就来了…", "挖掘机技术到底哪家强",
		"怪我咯？", "我也是醉了", "我想请你吃6块钱的麻辣烫", "我只想做一个安静的美男子",
		"我想起那夕阳下的奔跑，那是我逝去的青春", "万万没想到，最后小球还是掉下去咯", "23333333333",
		"6666666~", "我是小学生不太会说话", "我读书少你别骗我", "你很有天赋，跟我一起coding吧！",
		"不是说好做彼此的天使吗?", "画面太美我不敢看", "他说的好有道理我竟然无言以对",
		"why are you so diao?", "不要在意这些细节", "我和我的小伙伴们都惊呆了", "你TM在逗我？",
		"呵呵", "100块都不给我，哼~", "我抢劫你什么，我是抢劫的人吗？", "shen me gui...",
		"我是Crazy Bounce，我为自己代言", "土豪，我们做朋友吧！", "我这是要火的节奏啊", "弹~弹~弹~弹走鱼尾纹",
		"狗富贵，勿相汪", "no zuo no die why you try",
		"no try no high give me five", "why try why high can't be shine",
		"you shine you try still go die",  "Let it go...");
/**
 * variable
 */
var ballCount = 0;
var removedBallCount = 0;
var ballCollidedCount = new Array();

var maxCollidedCount = 5;

var disappearCount = 5;
var coinInternal = 5;
var barWidth = 374;
var removeAd = 0;

var ballVelocityX = 300;
var ballVelocityY = 300;

var moveDelta;
var clearBallActivated = true;
var slowerPlayed = false;
var ballSlower = false;
var barLonger = false;

var music = true;
var paused = false;
var oldtime = -1;
var curGameMode;

var firstOpenStart = true;

var SWALLOW_LAYER_TAG = 0;